Skip to content

(Closes #913) move 'colored' util from psyir.nodes to psyclone.utils - #3578

Merged
arporter merged 11 commits into
masterfrom
913_move_colored_helper
Sep 10, 2026
Merged

(Closes #913) move 'colored' util from psyir.nodes to psyclone.utils#3578
arporter merged 11 commits into
masterfrom
913_move_colored_helper

Conversation

@haanahfrost

Copy link
Copy Markdown
Collaborator

Moves the 'colored' utility out of psyir/nodes/nodes.py into psyclone/utils.py

  • psyir/nodes/node.py: removed the definition and the #913 TODO; now imports colored from psyclone.utils for its single call site in coloured_name(). Removed from __all__.
  • psyir/nodes/__init__.py: removed the re-export and the __all__ entry
  • Updated the imports in 28 test files

@codecov

codecov Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (1832b6f) to head (84df350).

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #3578   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          399       399           
  Lines        56467     56482   +15     
=========================================
+ Hits         56467     56482   +15     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@arporter arporter left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job @haanahfrost. Just a bit of tidying and modernising to do. (Note I've brought the branch up to master so you'll need to do a pull before making further changes.)

Comment thread src/psyclone/tests/domain/common/algorithm/alg_psyir_test.py Outdated
Comment thread src/psyclone/tests/domain/common/psylayer/global_reduction_test.py Outdated
Comment thread src/psyclone/utils.py Outdated
Comment thread src/psyclone/utils.py Outdated
Comment thread src/psyclone/utils.py Outdated
@arporter

arporter commented Sep 9, 2026

Copy link
Copy Markdown
Member

Linkspector failure is just due to Zenodo being very slow - it gets there in the end.
Everything looks good now so I'll just run the ITs to make sure.

@arporter arporter left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ITs were all green.
I'll proceed to merge.

@arporter

Copy link
Copy Markdown
Member

The linkspector and doc-build failures are all due to Zenodo still being slow.

@arporter
arporter merged commit fa7047c into master Sep 10, 2026
13 of 16 checks passed
@arporter
arporter deleted the 913_move_colored_helper branch September 10, 2026 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants